home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14939 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  39 lines

  1. Path: noc.netcom.net!news
  2. From: Tarang Deshpande <tarang@willows.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Check if a file exists?
  5. Date: Mon, 15 Apr 1996 13:34:48 -0700
  6. Organization: NETCOM Network Operations
  7. Message-ID: <3172B2E8.7D70@willows.com>
  8. References: <4kp7pg$upe@news-s01.ny.us.ibm.net> <317261E6.31D0@spectratek.co.uk> <829569968snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: daffy.willows.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  14.  
  15. Lawrence Kirby wrote:
  16. > In article <317261E6.31D0@spectratek.co.uk>
  17. >            dean_darlison@spectratek.co.uk "Dean Darlison" writes:
  18. > >man access
  19. > If that works on your system then the contents should tell you that this
  20. > function is inappropriate for the question asked.
  21. > --
  22. > -----------------------------------------
  23. > Lawrence Kirby | fred@genesis.demon.co.uk
  24. > Wilts, England | 70734.126@compuserve.com
  25. > -----------------------------------------
  26.  
  27.  
  28. Under SUNOS 5.4, LINUX 1.1.46 and conforming to SVID, AT&T, POSIX, 
  29. X/OPEN, and BSD 4.3
  30.  
  31. #include <unistd.h>
  32. int access (const char *path, int amode)
  33.  
  34. where amode is F_OK then the function is used to test for existance.
  35.